package ascript
{
	import flash.events.MouseEvent;
	import mx.core.Container;
	public class DragManager
	{
		public function DragManager()
		{
		}
		public static function moveObject(obj:Container):void
		{
			obj.addEventListener(MouseEvent.MOUSE_DOWN, objMouseDown);
			obj.addEventListener(MouseEvent.MOUSE_UP, objMouseUp);
		}
		private static function objMouseDown(e:MouseEvent):void{
			e.currentTarget.startDrag();      
		}
		private static function objMouseUp(e:MouseEvent):void{ 
			e.currentTarget.stopDrag();        
		}
	}
	
}